require("../../../../@babel/runtime/helpers/Arrayincludes");
var e = require("../../../../@babel/runtime/helpers/regeneratorRuntime"),
  r = require("../../../../@babel/runtime/helpers/asyncToGenerator"),
  t = require("../../../../utils/helper/subscribe/index"),
  u = require("../utils");
Component({
  properties: {
    config: {
      type: Object,
      value: null
    },
    userInfo: {
      type: Object,
      value: {}
    }
  },
  data: {
    isIos: $.isIos
  },
  methods: {
    onTapItem: function (a) {
      var i = this;
      return r(e().mark((function r() {
        var n, s, o, p;
        return e().wrap((function (e) {
          switch (e.prev = e.next) {
            case 0:
              if (n = a.currentTarget.dataset.path, console.log(n), !n.includes("privacy")) {
                e.next = 4;
                break
              }
              return s = "private-privacy" === n ? "https://www.sryjb.com/privacy.html" : "https://www.sryjb.com/user.html", e.abrupt("return", void $.router.push("/subpackage/web-view/index?", {
                url: s
              }));
            case 4:
              o = u.jumpSourceMap.find((function (e) {
                return e.source == n
              })), p = o.path, "/machine/subList" === n ? (0, t.jumpToSubscribePage)(i.data.userInfo.member_status) : p && $.router.push(p);
            case 6:
            case "end":
              return e.stop()
          }
        }), r)
      })))()
    }
  }
});